﻿
@{
    ViewData["Title"] = "UpdateOrder";
}

<h1>UpdateOrder</h1>

<table class="table table-bordered">

    <tr>
        <td>下单时间</td>
        <td><input type="text" class="form-control" value="{{OrderInfo.ABgTime}}" /></td>
    </tr>
    <tr>
        <td>下单客户</td>
        <td><input type="text" class="form-control" value="{{OrderInfo.AUserName}}" /></td>
    </tr>
    <tr>
        <td>入住天数</td>
        <td><input type="text" class="form-control" value="{{OrderInfo.ADay}}" /></td>
    </tr>
    <tr>
        <td>客房类型</td>
        <td><input type="text" class="form-control" value="{{OrderInfo.Gname}}" /></td>
    </tr>
    <tr>
        <td>入住时间</td>
        <td><input type="text" class="form-control" value="{{OrderInfo.ARuzhu}}" /></td>
    </tr>
    <tr>
        <td>订单价格</td>
        <td><input type="text" class="form-control" value="{{OrderInfo.AMoney}}" /></td>
    </tr>

</table>

<script>

    //定义VUE
    new Vue = ({
        //设置ID
        el: "#ViewContent",
        data() {
            return{
                OrderInfo: [],
                oid:0,
            }
        },
        methods: {
            //方法
            SinGleOrder: function () {
                //定义请求地址
                var URL = "/Guestroomorder/DataSingle";

                axios.post(URL, { oid: oid }).then(function (result) {
                    this.OrderInfo = this.result;
                })

            }
        }
    })

</script>